package com.cpit.platform.common.constant;

import java.util.HashMap;
import java.util.Map;

public class LogConstant {
    public static final String OPER_LOGIN = "login";
    public static final String OPER_LOGOUT = "logout";
    public static final String OPER_CREATE = "create";
    public static final String OPER_MODIFY = "modify";
    public static final String OPER_DELETE = "delete";
    public static final String OPER_QUERY = "query";
    public static final String OPER_IMPORT = "import";
    public static final String OPER_EXPORT = "export";

    public static final String MODULE_SECURITY = "1000";
    public static final String MODULE_ROLE = "1003";
    public static final String MODULE_USER = "1004";
    public static final String MODULE_ORGANIZATION = "1005";
    public static final String MODULE_CONFIG = "1011";
    

    public static final Map<String, String> OPER_MAP = new HashMap<String, String>();
    public static final Map<String, String> MODULE_MAP = new HashMap<String, String>();

    static {
        OPER_MAP.put(OPER_LOGIN, "登录");
        OPER_MAP.put(OPER_LOGOUT, "注销");
        OPER_MAP.put(OPER_CREATE, "新建");
        OPER_MAP.put(OPER_MODIFY, "修改");
        OPER_MAP.put(OPER_DELETE, "删除");
//        OPER_MAP.put(OPER_QUERY, "查询");
        OPER_MAP.put(OPER_IMPORT, "导入");
        OPER_MAP.put(OPER_EXPORT, "导出");

        MODULE_MAP.put(MODULE_SECURITY, "安全管理");
        MODULE_MAP.put(MODULE_CONFIG, "系统设置");
//        MODULE_MAP.put(MODULE_ROLE, "角色管理");
//        MODULE_MAP.put(MODULE_USER, "用户管理");
//        MODULE_MAP.put(MODULE_ORGANIZATION, "机构管理");
    }
}
